import baseSystem from "@/services/base.system"
import { functionCommon } from "@whzhuke/common"

export const upLoadService = async (file: File) => {
  const { data } = await baseSystem.upload({ file })

  return data?.url ? functionCommon.replaceHost(data.url, "public") : ""
}
